package shuiyuqing.network.beans;


import com.alibaba.fastjson.annotation.JSONField;

import java.math.BigDecimal;
import java.util.Calendar;

//import javax.persistence.Entity;
//import javax.persistence.Id;
//import javax.persistence.IdClass;
//import javax.persistence.JoinColumn;
//import javax.persistence.OneToOne;
//import javax.persistence.Table;

/**
 * 实时气象
 * @author wangying
 *
 */
//@Entity
//@Table(name="t_IrrBRMeteorological")
//@IdClass(StadiaCodeMeaTimePrimaryKey.class)
public class IrrBRMeteorological {

//	private StadiaCodeMeaTimePrimaryKey stadiaCodeMeaTimePrimaryKey;//测站采集时间联合主键类	
	
	
	private String stadiaCode = "";			//测站编码
	private Calendar meaTime;			//采集时间
	private BigDecimal temperature = BigDecimal.ZERO;//温度
	private BigDecimal humidity = BigDecimal.ZERO;//湿度
	private String windDir = "";//风向
	private BigDecimal windSpeed = BigDecimal.ZERO;//风速
	
	
	@JSONField(serialize=false)
	private IrrBRStadia irrBRStadia;//实时气象表存在对测站的依赖关系
	
//	@Id
//	public StadiaCodeMeaTimePrimaryKey getStadiaCodeMeaTimePrimaryKey() {
//		return stadiaCodeMeaTimePrimaryKey;
//	}
//	public void setStadiaCodeMeaTimePrimaryKey(
//			StadiaCodeMeaTimePrimaryKey stadiaCodeMeaTimePrimaryKey) {
//		this.stadiaCodeMeaTimePrimaryKey = stadiaCodeMeaTimePrimaryKey;
//	}
	
	
	
	public BigDecimal getTemperature() {
		return temperature;
	}
	
//	@Id
	public String getStadiaCode() {
		return stadiaCode;
	}
	public void setStadiaCode(String stadiaCode) {
		this.stadiaCode = stadiaCode;
	}
//	@Id
	public Calendar getMeaTime() {
		return meaTime;
	}
	public void setMeaTime(Calendar meaTime) {
		this.meaTime = meaTime;
	}
	public void setTemperature(BigDecimal temperature) {
		this.temperature = temperature;
	}
	public BigDecimal getHumidity() {
		return humidity;
	}
	public void setHumidity(BigDecimal humidity) {
		this.humidity = humidity;
	}
	public String getWindDir() {
		return windDir;
	}
	public void setWindDir(String windDir) {
		this.windDir = windDir;
	}
	public BigDecimal getWindSpeed() {
		return windSpeed;
	}
	public void setWindSpeed(BigDecimal windSpeed) {
		this.windSpeed = windSpeed;
	}
	
	
//	@OneToOne
//    @JoinColumn(name="stadiaCode",insertable=false,updatable=false)
	public IrrBRStadia getIrrBRStadia() {
		return irrBRStadia;
	}

	public void setIrrBRStadia(IrrBRStadia irrBRStadia) {
		this.irrBRStadia = irrBRStadia;
	}
	
}
